package com.eight.cloud.payment.service;

import com.eight.cloud.mybatisplus.service.IBaseService;
import com.eight.cloud.payment.entity.SubRefundOrderEntity;
import com.eight.cloud.payment.model.dto.SubRefundOrderDto;
import com.eight.cloud.payment.model.vo.SubRefundOrderVo;

/**
* 退款记录表 服务类
*
* @ClassName: ISubRefundService
* @Author TXC
* @Date 2024-12-24 16:24
*/
public interface ISubRefundOrderService extends IBaseService<SubRefundOrderEntity> {
    /**
     * 新增订单
     * @param subRefundOrderDto 退款订单dto
     * @return 退款订单vo
     */
    SubRefundOrderVo addOrder(SubRefundOrderDto subRefundOrderDto);

    /**
     * 查询订单
     * @param merchantId 商户id
     * @param subRefundNo 子商户订单号
     * @param appid appid
     * @return 退款订单vo
     */
    SubRefundOrderVo findSubRefundOrder(String merchantId, String subRefundNo, String appid);

    /**
     * 更新订单
     * @param uuid 订单编号
     * @param transactionId 支付平台流水号
     * @param status 状态
     * @return 是否更新成功
     */
    boolean updateSubRefundOrder(String uuid, String transactionId, Integer status);

}
